<template>
  <div>
    <el-button type="success" @click="dowlond()">下载附件</el-button>
  </div>
</template>
<script>
export default {
  data() {
    return {};
  },

  methods: {
    dowlond() {
      const config = {
        "content-type": "application/json",
        responseType: "blob",
      };
      this.$axios
        .post("http://127.0.0.1:8010/review/downloadExcelTemplate", config)
        .then((res) => {
          if (res.data == 1) {
            this.$message({
              message: "信息导出成功",
              type: "success",
            });
          } else {
            this.$message.error("错误,导入失败");
          }
        });
    },
  },
};
</script>
<style scoped>
.el-input {
  width: 40% !important;
  margin-left: 50px;
}
</style>